<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://chances.com.cn/jsp/epgdata" prefix="epgdata" %>
<%@taglib uri="http://chances.com.cn/jsp/epgutils" prefix="epgutils" %>

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<epgutils:currUrl var="cUrl" />
<epgutils:wechatConfig debug="true" apiString="scanQRCode"
	var="tokenConfig" url="${cUrl}" />
<c:set var="appId" value="${tokenConfig.appId}" scope="application"/>	
<c:set var="token" value="${tokenConfig.token}" scope="application"/>
<script>
//alert("${EPG_USER_SESSION.userId}")
console.log("${tokenConfig.timestamp}|${tokenConfig.noncestr}|${tokenConfig.signature}|${tokenConfig.appId}|${tokenConfig.token}")
wx.config({
	debug : false,
	appId : '${tokenConfig.appId}',
	timestamp : '${tokenConfig.timestamp}',
	nonceStr : '${tokenConfig.noncestr}',
	signature : '${tokenConfig.signature}',
	jsApiList : [ 'scanQRCode', 'startRecord', 'stopRecord',
			'stopRecord', 'translateVoice' ]
});

</script>


<div class="row navbar-fixed-top menu-row">
	<div class="col-xs-2 menu-col-image" id="index_history" onclick="confirmBind('${historyUrl}',this.id)">
		<img src="${_templatePath}/images/menu_hs.png" class="menu-col-img"/>
	</div>
	<c:forEach items="${menu_cat}" var="menu" varStatus="i">
		<c:if test="${i.index == menuIdx }">
			<div class="col-xs-2 menu-col" style="background-color:#007e8d; color:white;">${menu.title}</div>
		</c:if>
		<c:if test="${i.index != menuIdx }">
			<div class="col-xs-2 menu-col" id="menu_${i.index}" onclick="gotoPage('${menu.url}',this,1)">
				<span style="color:#cef5f3;">${menu.title}</span>
			</div>
		</c:if>
	</c:forEach>
	<div class="col-xs-2 menu-col-image" id="index_search" onclick="gotoPage('${searchUrl}',this,1)">
		<img src="${_templatePath}/images/menu_sch.png" class="menu-col-img"/>
	</div>
</div>